package com.xbongbong.sys.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 *
 * @author 魏荣杰
 *
 */
@Getter
public enum SystemLabelGroupEnum {

    /**
     * 默认分组
     */
    DEFAULT_GROUP(1L, "constant.paas.label_group_name", 0),
    /**
     * 回收站
     */
    RECYCLE_BIN_GROUP(0L, "constant.msg.label_name_recycle", 1),
    ;

    private final Long id;

    private final String name;

    private final Integer sort;

    SystemLabelGroupEnum(Long id, String name, Integer sort) {
        this.id = id;
        this.name = name;
        this.sort = sort;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
